﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyApplication.aspx.cs" Inherits="CentralOffice.WebClient.Tasks.MyApplication" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
<link rel="stylesheet" type="text/css" href="../theme/2/style.css" />
    <script src="../inc/js/ccorrect_btn.js" type="text/javascript"></script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="../images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle" /><span class="big3">我的申请</span></td>
  </tr>
</table>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager runat="server" ID="sm"  />
    <huag:OAGridView  id="gv" runat="server" DataKeyNames="Id" AllowSorting="True" skinid="PagingGridView" Width="98%" ConfirmDelete="true"  DataSourceID="odsApproved" EnableViewState="false" EnableTruncate="true" MaxTextLength="26" OnRowDataBound="gv_RowDataBound">
   <Columns>
       <asp:HyperLinkField DataTextField="Name" DataNavigateUrlFormatString="ApplicationView.aspx?id={0}" DataNavigateUrlFields="Id" HeaderText="名称" target="_blank" SortExpression="Name"/>
       <asp:BoundField DataField="ApplicationCode" HeaderText="编号" />
       <asp:BoundField DataField="Applicant" HeaderText="申请人" SortExpression="Applicant" />
       <asp:BoundField DataField="DateOfApplication" HeaderText="申请日期" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="false" SortExpression="DateOfApplication" />
       <huag:EnumTypeField DataField="Category" HeaderText="申请类别" CategoryName="approvalObject" />
       <huag:EnumTypeField DataField="UrgencyDegree" HeaderText="紧急程度" CategoryName="applicationPriority"  />
       <%--<asp:BoundField DataField="ApprovalContent" HeaderText="审批内容"  />--%>
       <huag:EnumTypeField DataField="Status" HeaderText="审批结果" CategoryName="approvalStatus" />
       
       <asp:HyperLinkField  Text="修改" DataNavigateUrlFormatString="ApplicationUpdate.aspx?id={0}" DataNavigateUrlFields="Id" />
   </Columns>
</huag:OAGridView>

<asp:ObjectDataSource id="odsApproved" runat="server" EnablePaging="True" 
 TypeName="CentralOffice.Task.BusinessActions.Applications" 
 SelectMethod="GetPaged" SelectCountMethod="GetCount"
 SortParameterName="sortExpression"  OnSelecting="ods_Selecting">
    <SelectParameters>      
      <asp:Parameter Name="whereClause" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
    </form>
</body>
</html>
